using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Webcar.Repair
{
    public partial class repairReport : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public void SearchClick(object sender, EventArgs e)
        {
            string s_kind = "record_no";
            if (this.rbRecordno.Checked)
                s_kind = "record_no";
            if (this.rbDriver.Checked)
                s_kind = "driver_name";
            if (this.rbRepairKInd.Checked)
                s_kind = "repair_kind_name";

            this.RepairReportView1.InitView(s_kind, this.SelectByDate1.GetDeptCode(), this.SelectByDate1.GetStartDate(),
                this.SelectByDate1.GetEndDate());
        }
    }
}
